package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author WEN
 * @Date 2024/3/21 0021
 **/
@Data
@ApiModel("审核工单结单对象")
public class WorkCheckStatementVo {
    @NotNull(message = "工单结单ID不能为空")
    @ApiModelProperty(value = "工单结单ID", required = true)
    private Long id;

    @NotNull(message = "结单审核类型不能为空")
    @NumberPattern(regexp = "^(1|2)$", message = "结单审核类型参数不合法", required = true)
    @ApiModelProperty(value = "结单审核类型：1-审核通过，2-驳回", required = true)
    private Integer checkType;

    @ApiModelProperty(value = "结单总费用")
    private BigDecimal price;

    @ApiModelProperty(value = "确认结单费用")
    private BigDecimal surePrice;

    @Length(max = 200, message = "审核结单备注长度限制200个字符")
    @ApiModelProperty(value = "审核结单备注")
    private String remark;

}
